<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>index</title>
</head>
<body>
<script type="module">
	window.onerror = e => {
		console.log('error', e.message);
	};
	window.onunhandledrejection = (e) => {
		console.log('unhandledrejection', e.reason.message);
	};

	import('../dist/index.js').then(({ importEntry }) => {
		importEntry('./template.html').then(res => {
			console.log(res.template);
			return res.execScripts().then(exports => {
				console.log(exports);
			});
		}).catch(e => {
			console.log('importEntry failed', e.message);
		});
	});
</script>
</body>
</html>
